package com.dyrj.base.system.org.service;

import com.dyrj.base.system.org.model.TDepartment;
import com.dyrj.vo.ResultMsg;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface TDepartmentService {
	TDepartment selectByPrimaryKey(Long deptId);
	List<TDepartment> selectAllTreeDept(@Param("tenantId")Long id);
	List<TDepartment>  selectAllDept(@Param("pid")Long id);
	public ResultMsg table(TDepartment record);
	public ResultMsg add(TDepartment record);

	/**
	 * @Title: info
	 * @Description: TODO(详情)
	 * @param id
	 * @return
	 * @return SysRole    返回类型
	 */
	public TDepartment info(Long id);

	/**
	 * @Title: update
	 * @Description: TODO(更新)
	 * @param record
	 * @return ResultMsg    返回类型
	 */
	public ResultMsg update(TDepartment record);

	/**
	 * @Title: del
	 * @Description: TODO(删除)
	 * @param id
	 * @return ResultMsg    返回类型
	 */
	public ResultMsg del(Long id);

}
